package com.caxxb.dao;

import com.caxxb.common.R;
import com.caxxb.entity.Game;
import com.caxxb.util.PageData;
import org.springframework.web.multipart.MultipartFile;

import java.time.LocalDate;
import java.util.List;

public interface GameDao {


    //通过id得到游戏
    public List<Game> getGameById(int id);

    //分页查询
    PageData<Game> getGamePages(int typeid,String keywords,int pageNo,int pageSize);

    List<Game> getGames();

    boolean addSales(int id);

    boolean delSales(int id);

    boolean delGame(int game_id);

    boolean addGame(String game_name, Double price, String game_developer, LocalDate release_time, String game_img, int typeid);

    List getFireImg();

    List getNewlImg();

    public PageData<Game> getGame(String keywords,int pageNo,int pageSize);

    public boolean updateGame(int game_id, Game game);
}
